<script>
	// #ifdef H5
	import pageAnimation from './components/page-animation'
	// #endif
	export default {
		// #ifdef H5
		mixins: [pageAnimation],
		// #endif
		onShow() {},
		// #ifdef APP
		onLaunch() {
			//app启动时打开启动广告页
			this.getWebview()

		},
		// #endif

		mounted() {},
		methods: {
			getWebview() {
				var w = plus.webview.open(
					'hybrid/html/advertise/advertise.html',
					'本地地址', {
						top: 0,
						bottom: 0,
						zindex: 999
					},
					'fade-in',
					500
				);
				//设置定时器，4s后关闭启动广告页
				setTimeout(function() {
					plus.webview.close(w);
				}, 4000);
			}
		},

		onLoad() {},
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss';
	/* #ifndef APP-NVUE */
	@import '@/static/customicons.css';

	// 设置整个项目的背景色
	page {
		background-color: #f7fffe;

	}

	* {
		margin: 0;
		padding: 0;
	}

	/* #endif */
	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}

	uni-checkbox-group {
		width: 100% !important;
	}

	uni-checkbox-group uni-label {
		width: 33% !important;
		display: inline-flex;
		margin-bottom: 20rpx;
	}

	/*checkbox 选项框大小  */
	uni-checkbox .uni-checkbox-input {
		width: 40rpx !important;
		height: 40rpx !important;

	}

	/*checkbox选中后样式  */
	uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
		background: #ff557f;
		border-color: #ff557f;
	}

	/*checkbox选中后图标样式  */
	uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked::before {
		width: 20rpx;
		height: 20rpx;
		line-height: 20rpx;
		text-align: center;
		font-size: 18rpx;
		color: #fff;
		background: transparent;
		transform: translate(-70%, -50%) scale(1);
		-webkit-transform: translate(-70%, -50%) scale(1);
	}
</style>
